-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: more intermediate output columns and input validation #105
Conversation
powersimdata/scaling/clean_capacity_scaling/tests/test_object_persistence.py
Show resolved
Hide resolved
powersimdata/scaling/clean_capacity_scaling/tests/test_target_manager_input.py
Outdated
Show resolved
Hide resolved
powersimdata/scaling/clean_capacity_scaling/tests/test_target_manager_input.py
Outdated
Show resolved
Hide resolved
Integration test: it generates exactly same results with the previous code. Just need some pep8 cleanings and we are good to go. Good to see the corner cases are captured specifically. |
@@ -11,7 +14,8 @@ def test_create_targets_from_dataframe(): | |||
'ce_target_fraction': [.25, .4], | |||
'total_demand': [200000, 300000], | |||
'external_ce_historical_amount': [0, 0], | |||
'solar_percentage': [.3, .6]} | |||
'solar_percentage' :[.3, .6], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The space added at wrong place...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
This PR brings the capacity scaling framework up date with the latest changes.
The main changes are:
(1) code to adapt to the current format of the allowed resourced column
(2) additional columns of intermediate calculations added the next capacities dataframe
(3) input validation for capacity factors, etc.
(4) refinement of object JSON string output